﻿//++
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
// Module Name:
//
//  SchedulerEventArgs.cs
//    
// Abstract:
//
//  This module implements the SchedulerEventArgs class. This implements the event args for events that only need to propagate
//  the logging context.
//
//--

using System;
using System.Diagnostics;

using Microsoft.OfficeCommunicationsServer.Applications.Common;

namespace Microsoft.EnhancedReminders.Scheduler
{
    /// <summary>
    /// Event args for events that only need to propagate the logging context.
    /// </summary>
    internal class SchedulerEventArgs : EventArgs
    {
        // Logging context
        private readonly Context _context;

        /// <summary>
        /// ctor.
        /// </summary>
        /// <param name="context">Logging context</param>
        internal SchedulerEventArgs(Context context)
        {
            Debug.Assert(context != null, "context != null");

            _context = context;
        }

        /// <summary>
        /// Returns the logging context.
        /// </summary>
        internal Context Context
        {
            get
            {
                return _context;
            }
        }
    }
}
